package ysq.xyg.model;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 基础部分-用户
 * */
@Data
@NoArgsConstructor
@Table(name = "base_user")
public class BaseUser  implements Serializable {
    @Id
    @Column(name = "userId")
    private String userid;
    @Column(name = "userName")
    private String username;
    @Column(name = "userPassword")
    private String userpassword;
    @Column(name = "headLogo")
    private String headlogo;
    @Column(name = "createTime")
    private Date createtime;
    @Column(name = "removeTag")
    private String removetag;
    @Column(name = "departId")
    private String departid;

    /**
     * 1:男，2：女
     */
    private String sex;

    private String phone;
    @Column(name = "brithday")
    private String brithday;

    private String province;

    private String city;

    private String area;

    private String email;

    @Transient
    private BaseDepart baseDepart;
    /**
     * 部门名称
     */
    @Transient
    private String departName;


}